package com.yanfan.energy.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @Author huan
 * @Description 任务进度列表
 * @ClassName 2023年04月06日 19:38:00
 * @Version 1.0
 **/
public class TaskProgress {


    private Long id;
    /**
     * 任务ID
     */
    private Long taskId;
    /**
     * 任务类型（巡检、维修、保养）
     */
    private Integer taskType;
    /**
     * 主要操作内容
     */
    private String progressContent;
    /**
     * 操作人id
     */
    private Long operatorId;
    /**
     * 操作人名称
     */
    private String operatorName;
    /**
     * 操作人时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date operationTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getTaskId() {
        return taskId;
    }

    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }

    public Integer getTaskType() {
        return taskType;
    }

    public void setTaskType(Integer taskType) {
        this.taskType = taskType;
    }

    public String getProgressContent() {
        return progressContent;
    }

    public void setProgressContent(String progressContent) {
        this.progressContent = progressContent;
    }

    public Long getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
    }

    public String getOperatorName() {
        return operatorName;
    }

    public void setOperatorName(String operatorName) {
        this.operatorName = operatorName;
    }

    public Date getOperationTime() {
        return operationTime;
    }

    public void setOperationTime(Date operationTime) {
        this.operationTime = operationTime;
    }


    public void initProgressContent(String detail) {
//        this.progressContent = this.getOperatorName()+DateUtils.getTime()+detail;
        this.progressContent = detail;


    }
}
